import { AppRouteRecordRaw } from '@/types/route'
import Layout from '@/layout/index.vue'

export let constantRoutes: Array<AppRouteRecordRaw> = [
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */ '@/views/login/index.vue'),
    meta: { hideMenu: true }
  },
  {
    path: '/redirect',
    name: 'redirect',
    component: Layout,
    meta: {
      hideMenu: true,
      title: '重定向'
    },
    children: [
      {
        path: '/redirect/:path(.*)',
        component: () => import(/* webpackChunkName: "redirect" */ '@/views/redirect/index.vue'),
        name: 'redirectPage',
        meta: { title: '重定向页面' }
      }
    ]
  }
]
